package cyy.example.com.facotry.model.api;

import java.io.Serializable;

import cyy.example.com.facotry.net.RspCode;



public class BaseEntity<T> implements Serializable {

    private static final long serialVersionUID = -1665553101086672598L;
    public String code;
    public String msg;
    public boolean isSuccess() {
        return RspCode.SUCCEED.equals(code);
    }

    //-------
    private String message;
    private T data;
    //-----重构后的实体


    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }
}
